package rsee.com;

public class EyeFrameData {
    public enum FrameType {
        FrameI,
        FrameP,
    }
    
    private FrameType mType = FrameType.FrameP;
    private byte[] mFrameData = null;
    private byte mChannelId=0;
    //private int mTimeStamp = 0;
    
    public EyeFrameData(FrameType type, byte[] frameData,byte channelId) {
        mType = type;
        mFrameData = frameData;
        mChannelId = channelId;
    }
    
    public FrameType getType() {
        return mType;
    }
    
    public byte[] getFrameData() {
        return mFrameData;
    }
    
    public byte getChannelId()
    {
    	return mChannelId;
    }
    public int getSize() {
        if (null == mFrameData)
            return 0;
        
        int size = mFrameData.length;
        return size;
    }
    
    public boolean isFrameI() {
        if (mType == FrameType.FrameI)
            return true;
        
        return false;
    }
}